import React, { Component } from 'react'
import { unstable_batchedUpdates } from 'react-dom';
 class Download extends Component {
  state = {
    aaa:1
  }
  clickfn(){
   
      this.setState({
        aaa:2222
      },()=>{
        this.setState({
          aaa:333
        },()=>{
          this.setState({
            aaa:444
          })
        })
      })

    
    // this.setState({
    //   aaa:2222
    // })
    // console.log(this.state.aaa);
  }
  render() {
    console.log("zjixong ");
    return (
      <div>download
        <h1>{this.state.aaa}</h1>
        <button onClick={this.clickfn.bind(this)}>1211</button>
      </div>
    )
  }
}

export default Download